package cn.pconline.security2.authorization;

/**
 * Copyrights 2005, Guangzhou Intellisoft ltd.
 * User: chen xiaohu
 * Date: 2005-12-9
 * Time: 14:42:09
 */
public class Role {
    private int id;
    private String name;
    private String description;
    private int rank;
    private String application;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getRank() {
        return rank;
    }

    public void setRank(int rank) {
        this.rank = rank;
    }

    public String getApplication() {
        return application;
    }

    public void setApplication(String application) {
        this.application = application;
    }

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("role object:{id=").append(id);
		sb.append(",name=").append(name);
		sb.append(",description=").append(description);
		sb.append(",rank=").append(rank);
		sb.append(",application=").append(application);
		sb.append("}");
		return sb.toString();
	}
}
